<?php
if($act=="edit")
{
    $sql_select = "SELECT * FROM tblsettour WHERE iId = ".$id;
    $rs=$dbsql->query($sql_select);
    if ($dbsql->num_rows($rs)==0)
    {
        page_transfer("Tour not Exists!");
    }
    $tour = $dbsql->fetch_array($rs);

    Select_Tag($id,'Tour%');
}else
{
    $tour               = array();
    $tour['iParentId']  = $id;
    $tour['iStatus']    = 1;
    $id                 = 0;
    $tour['cPriceDayArr'] = getConfig('RatesTourDefault');
}
?>
